   <#assign _comment>${table.comment?replace('表','')}</#assign>
   <#assign _editcol>0</#assign>
   /**
 * 功能:${_comment}列表定义
 */
 Ext.define('${entity.packageName}.list.${table.entityName}',{
    extend: 'expand.page.list', 
        
    /**
    * @private
    * @description 数据表格列定义
    */
    _getGridColumn : function(){
        return [
            {text: "id", width: 50, dataIndex: '${table.primaryProperty.property}',hidden:true},
            <#list table.propertys as prop>
            <#if prop.name?index_of('_name')!=-1 && _editcol=='0'>
            {text: "删除",width:50,dataIndex: '${prop.property}',renderer:this.rendererDelCol},
            {text: "编辑",width:50,dataIndex: '${prop.property}',renderer:this.rendererEditCol},
            {text: "${prop.comment}",flex: 1,dataIndex: '${prop.property}'},
            <#assign _editcol>1</#assign>
            <#else>
            {text: "${prop.comment}",width:120<#if prop.name?index_of('_id')!=-1 || prop.property=='fullPath'|| prop.property=='fullName'|| prop.property=='description'>,hidden:true<#elseif prop.property=='status'>,renderer:this.rendererValid</#if><#if prop.type=="datetime" || prop.type=="date" || prop.type=="timestamp" || prop.type='time'>,type:'date',renderer:Ext.util.Format.dateRenderer('Y-m-d H:i')<#elseif prop.type=="decimal" || prop.type=="float" || prop.type=="double">,type:'number',renderer:Ext.util.Format.numberRenderer(0.00)</#if>,dataIndex: '${prop.property}'},
            </#if>
            </#list>
        ];
    },
    
    /**
    * @private
    * @description 数据表格配置
    */
    _getGridConfig : function(){
        return {
            entity      : '${table.entityName}',
            editRoute   : '${config.packageName}.edit.${table.entityName}',
            entityDesc  : '${_comment}',
            entityField : '${table.primaryProperty.property}'
        }
    },
    
    <#if table.tree?exists>
    /**
    * @private
    * @description 导航栏配置
    */
    _getTreeConfig : function(){
        return this._getGridConfig();
    },
    </#if>
    
    /**
    * @private
    * @description 搜索表单配置
    */   
    _getSearchColumn : function(){
        return [
            <#list table.propertys as prop>
            <#if (prop.search?default("")=="") || prop.propertyType=="Character" || prop.propertyType=="Boolean" || prop.propertyType=="enum">
            <#else>
            {
                fieldLabel: "${prop.comment}",
                emptyText:'${prop.comment}搜索值', 
                width: 100,
                <#if prop.type=="datetime">
                xtype:'datefield',
                <#elseif prop.type=="double" || prop.type=="integer" || prop.type=="int" || prop.type=="tinyint" || prop.type=="smallint" || prop.type=="float" || prop.type=="long">
                xtype:'numberfield',
                <#if prop.type=="integer" || prop.type=="int" || prop.type=="tinyint">
                allowDecimals:false,
                </#if>
                <#else>
                xtype:'textfield',
                </#if>
                name:<#if prop.propertyType=="String">'_${prop.property}_like'<#else>'${prop.property}'</#if>
            },
            </#if>
            </#list>
        ];
    }
});